.save-states {
  --controls-height: 55px;
}

.save-states__list {
  display: flex;
  flex-direction: column-reverse;
}

.save-states__items {
  display: flex;
  gap: 8px;
  padding: 10px;
  flex-wrap: wrap;
}

.save-states__items:empty {
  display: none;

  & + .save-states__core-header {
    display: none;
  }
}

.save-states__core-header {
  background-color: var(--hover-colour);
  padding: 10px 20px;
  position: sticky;
  top: var(--controls-height);
  display: flex;
  align-items: center;
  gap: 10px;
}

.save-states__core-header-count {
  margin-left: auto;
}

.save-states__item {
  display: flex;
  align-items: center;
  background-color: var(--info-colour);
  padding: 10px;
  box-sizing: border-box;
  gap: 20px;
  cursor: pointer;
  border: 2px solid transparent;

  &:hover {
    transform: scale(1.05);
  }
}

.save-states__item--selected {
  border-color: var(--selection-colour);
}

.save-states__item-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.save-states__item-name {
  font-weight: bold;
  overflow-wrap: break-word;
}

.save-states__item-image {
  flex-shrink: 0;
  width: 123px;
  height: auto;
  aspect-ratio: 160 / 144;
}


.save-states__camera-export-button {
  align-self: flex-start;
  opacity: 0.6;

  &:hover{
    opacity: 1;
  }
}
